package org.assistant.csp.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.assistant.common.web.servlet.mvc.Controller;
import org.assistant.common.web.servlet.mvc.Page;

public class MainController extends Controller {
	private static final long serialVersionUID = -8196529445171445972L;

	public MainController() {
	}

	protected Object requestDispatcher(HttpServletRequest request,
			HttpServletResponse response, String methodName) {
		try {
			return index(request, response);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

	public Page index(HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		return new Page("/frame/main/main.jsp");
	}
}
